package com.tuniu.agents.common.exception;

import lombok.Getter;

@Getter
public class BusinessException extends RuntimeException {
    /**
     * Status code
     */
    private final Integer code;


    public BusinessException(String message) {
        this(9999,message);
    }

    public BusinessException(Integer code,String message) {
        super(message);
        this.code = code;

    }
}
